/**
 * 
 */
package com.base.myproject.client.ui.codenamemap;

import java.io.Serializable;
import java.util.HashMap;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;


/**
 * @author zgw
 *2009-10-22 下午03:49:05
 * javazgw@gmail.com
 */
public /*abstract*/ class CodeNameMap  implements Serializable , AsyncCallback<CodeNameMap>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 10005321L;

	protected String loadSql;
	HashMap<String ,String > hm ;
	public CodeNameMap()
	{
		
	}
	
	public void 	load()
	{
		final com.base.myproject.client.tools.GreetingServiceAsync greetingService = GWT.create(com.base.myproject.client.tools.GreetingService.class);
		greetingService.getCodeNameMap(this,this);
	}
	
	public void reload()
	{
		load();
	}
	public void setHashTable(HashMap<String,String > ht)
	{
		hm = ht;
	}
	public HashMap<String,String > getHashTable()
	{
		return hm;
	}
	 public void get(String key)
	 {
		 
	 }

	/**
	 * @return the loadSql
	 */
	public String getLoadSql() {
		return loadSql;
	}

	/**
	 * @param loadSql the loadSql to set
	 */
	public void setLoadSql(String loadSql) {
		this.loadSql = loadSql;
	}
	@Override
	public void onFailure(Throwable caught) {
		System.out.println("false");
		
	}
	@Override
	public void onSuccess(CodeNameMap result) {
		System.out.println("success");
	
	}
	
}
